home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / news / newspak-.5 / newspak- / newspak / defs / make-newspak-dist < prev   
Text File  |  1995-11-23  |  2KB  |  75 lines

  1. #!/bin/bash
  2. #
  3. # make-configs - localize the news/mail/uucp config files
  4. #
  5.  
  6. #------------- EDIT THE NEXT LINE TO SHOW WHERE WE ARE NOW ----------------
  7.  
  8. NEWSPAK="/home/NEWSPAK/newspak-2.4"
  9.  
  10. # uncomment the next line to use my particular variant
  11. # of directory structure for USENET-related stuff
  12. #DEFS="$NEWSPAK/defs/defs.victrola"       # path to defs.site
  13.  
  14. # uncomment the next line to use your (hopefully edited) 
  15. # site-specific idea of 'the one true directory structure'
  16. # the 'as-delivered' default is my paths
  17. #DEFS="$NEWSPAK/defs/defs.site"          # path to defs.site
  18.  
  19. # uncomment the next line to take *MY* local config files
  20. # and build the generic configurable ones for 'newspak'
  21. # (for *MY* use only to build the newspak distribution)
  22. DEFS="$NEWSPAK/defs/defs.newspak"        # path to defs.site
  23.  
  24.  
  25.  
  26. #------------------ STOP EDITING HERE -------------------------------------
  27.  
  28. ##### CHECK TO MAKE SURE YOU DON'T TOAST YOURSELF
  29. HOSTNAME=`hostname`
  30. if [ $HOSTNAME != "victrola" ] ; then
  31.     echo ""
  32.     echo "...this script is for Vince's use only in making the distribution..."
  33.     echo "       (you probably don't want to run this)"
  34.     echo ""
  35.     exit 1
  36. fi
  37.  
  38. # product-related subdirectories with *.newspak files in them
  39. #
  40. # we don't mess with the sendmail+IDA paths so it doesn't appear here...
  41.  
  42. export TIN='tin-1.2p2'
  43. export TRN='trn-3.5'
  44. export NN='nn-6.4.18'
  45. export SMAIL='smail-3.1.28'
  46. export UUCP='uucp-1.05'
  47. export MTHREADS='mthreads-3.1'
  48. export ELM='elm-2.4.23'
  49. export CNEWS='cnews-Feb23-1993'
  50. export INN='inn-1.4'
  51.  
  52.  
  53. cd $NEWSPAK
  54.  
  55. for DIR in $TIN $TRN $NN $SMAIL $UUCP $MTHREADS $ELM $CNEWS $INN
  56. do
  57.     echo "...............$DIR........................."
  58.     cd $NEWSPAK/$DIR
  59.     pwd
  60.     for FILE in `ls -1 *.newspak`
  61.     do
  62.         echo $FILE
  63.  
  64.         # take the 'real' files and build the *.newspak
  65.         # files out of them
  66.  
  67.         sed -f $DEFS `basename $FILE .newspak` > $FILE 
  68.     done
  69.     cd .. 
  70. done
  71.  
  72. echo "... done ..."
  73.  
  74.  
  75.